package com.acoffee.maven.service.impl;

import com.acoffee.maven.mapper.DeptMapper;
import com.acoffee.maven.pojo.Dept;
import com.acoffee.maven.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author acoffee
 * @create 2021-05-14 19:19
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> findAllDepts() {
        return deptMapper.selectAllDepts();
    }
}
